/*
 * STMTest2.c
 *
 *  Created on: May 25, 2013
 *      Author: koldar
 */

#include <stdio.h>
#include <stdlib.h>
#include "stm.h"

#define T 100
#define Q 100

int main(){

	PvectorParam x=initVectorParam(T/2,Q/2);
	PvectorParam add=initVectorParam(0,0);
	PvectorParam swap=initVectorParam(T/2,Q/2);
	PvectorParam remove=initVectorParam(T,Q);

	initSTMEngine(T,Q);
	int i;
	for (i=0;i<10;i++){
		int a=selectBestLOSMove(x,add,swap,remove);
		switch (a){
		case MOVE_ADD: {
			printf("e' stata scelta la mossa add\n");
			break;
		}
		case MOVE_SWAP: {
			printf("e' stata scelta la mossa swap\n");
			break;
		}
		case MOVE_REMOVE: {
			printf("e' stata scelta la mossa remove\n");
			break;
		}
		}

	}
	printf("FINE.\n");
	return 0;
}
